Ext.define('BM.view.trade.ChangeToken', {
    extend: 'Ext.window.Window',
    alias : 'widget.changetoken',
    title : '更换手牌',
    layout: 'fit',
    autoShow: true,
    initComponent: function() {
        this.items = [
            {
                xtype: 'form',
        	     fieldDefaults: {
            	    labelWidth: 75,
                	labelAlign: 'right'
        		 },
                width:300,
                margins: '5 5 5 2',
                items: [{
                		xtype: 'panel',
                		border:false,
                		height:5
                    },{
                        xtype: 'textfield',
                        name : 'handTokenNum',
                        fieldLabel: '原手牌号',
                        readOnly:true,
                        allowBlank: false
                    },{
                        xtype: 'textfield',
                        name : 'newHandTokenNum',
                        fieldLabel: '新手牌号',
                        allowBlank: false 
                    },{
                        xtype: 'textarea',
                        name : 'memo',
                        fieldLabel: '备注'
                    },{
                    	xytpe: 'hidden',
                    	name : 'id'
                    }
                ]
            }
        ];

        this.buttons = [
            {
                text: 'Save',
                action: 'save'
            },
            {
                text: 'Cancel',
                scope: this,
                handler: this.close
            }
        ];

        this.callParent(arguments);
    }
});